package algo;

import java.util.*;

public class ArraysTemplateMethods {
    public void methods() {
        int[][] intervals = new int[][]{};
        Arrays.sort(intervals, (a, b) -> a[0] != b[0] ? a[0] - b[0] : a[1] - b[1]);

        List<int[]> list = new ArrayList<>();
        list.toArray(new int[list.size()][]);
        list.sort((a, b) -> a[0] - b[0]);
        list.add(0, new int[]{1,2});


        PriorityQueue<Integer> queue = new PriorityQueue<>((a, b) -> b - a);
        PriorityQueue<Integer> queue1 = new PriorityQueue<>();


//        Math.min

    }
}
